package cn.com.zcode.email.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import cn.com.zcode.core.xml.XmlBean;

@XmlRootElement(name = "mail")
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlEmailTemp implements XmlBean {

	@XmlElement(name = "title")
	private String title;

	@XmlAttribute(name = "id")
	private String id;

	@XmlElement(name = "body")
	private String body;

	@Override
	public String getKey() {

		return this.getId();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	@Override
	public String toString() {
		return "XmlEmailTemp [title=" + title + ", id=" + id + ", body=" + body + "]";
	}


}
